package com.raymond.queue.common.msg.request;

import com.raymond.queue.common.enums.CommandIdType;
import com.raymond.queue.common.msg.BaseMessage;
import com.raymond.queue.common.msg.DefaultMessage;

import java.util.List;

/**
 * 打包请求
 *
 * @author :  raymond
 * @version :  V1.0
 * @date :  2021-07-14 14:24
 */
public class PackRequest implements BaseMessage {

    private List<BaseMessage> list;

    public PackRequest(List<BaseMessage> list) {
        this.list = list;
    }

    @Override
    public int getCommandId() {
        return CommandIdType.PACK_REQ.getCommandId();
    }

    @Override
    public int getSequenceId() {
        return 0;
    }


    public List<BaseMessage> getList() {
        return list;
    }
}
